-- GENERATED SPELL FOR [Iron Rune Avenger] --


function spell0_26786(pUnit, Event) --@Rune of Retribution,Self--
pUnit:FullCastSpellOnTarget(52628,pUnit)
pUnit:RegisterEvent('Sorts_26786', 618, 1)
end

function Sorts_26786(pUnit, Event)
local choix_sorts_26786 = math.random(0, 0)
if choix_sorts_26786 == 0 then
pUnit:RegisterEvent('spell0_26786', 1, 1)
end
end

function mob26786_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26786', math.random(1500, 3000), 1)
end

function mob26786_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26786_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26786_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26786, 1, 'mob26786_Action')
RegisterUnitEvent(26786, 2, 'mob26786_Leave')
RegisterUnitEvent(26786, 3, 'mob26786_Kill')
RegisterUnitEvent(26786, 4, 'mob26786_Die')
